﻿@model IEnumerable<Authorize.Application.ClientSource.Model.ClientSourceModel>

@{
    ViewData["Title"] = "Index";
}

<h2>Index</h2>

<p>
    <a asp-action="Create">新建</a>
</p>
<table class="table">
    <thead>
        <tr>
            <th>
                @Html.DisplayNameFor(model => model.ClientId)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.ClientName)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.ClientSecrets)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.Type)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.RedirectUris)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.PostLogoutRedirectUris)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.AllowedCorsOrigins)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.AllowedScopes)
            </th>
            <th></th>
        </tr>
    </thead>
    <tbody>
        @foreach (var item in Model)
        {
            <tr>
                <td>
                    @Html.DisplayFor(modelItem => item.ClientId)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.ClientName)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.ClientSecrets)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.Type)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.RedirectUris)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.PostLogoutRedirectUris)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.AllowedCorsOrigins)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.AllowedScopes)
                </td>
                <td>
                    @Html.ActionLink("编辑", "Edit", new { item.Id }) |
                    @Html.ActionLink("详情", "Details", new { item.Id }) |
                    @Html.ActionLink("删除", "Delete", new { item.Id })
                </td>
            </tr>
        }
    </tbody>
</table>
